import Layout from '@/layout'

const labelRouter = {
  path: '/user',
  component: Layout,
  redirect: '/user',
  name: 'user',
  meta: {
    title: '用户管理',
    icon: 'example'
  },
  children: [{
    path: 'user-manage',
    name: 'User-manage',
    component: () => import('@/views/userManage/user-manage/index'),
    meta: {
      title: '用户管理'
    }
  },
  {
    path: 'user-industry',
    name: 'User-industry',
    component: () => import('@/views/userManage/user-industry/index'),
    meta: {
      title: '行业分类'
    }
  },
  {
    path: 'friends-list',
    name: 'friends-list',
    component: () => import('@/views/userManage/friendsList/index'),
    meta: {
      title: '邀请好友列表'
    }
  },
  {
    path: 'label-manage',
    component: () => import('@/views/userManage/label/index'), // Parent router-view
    name: 'label-manage',
    meta: {
      title: '标签管理'
    },
    children: [{
      path: 'hotlabel-manage',
      component: () => import('@/views/userManage/label/hotlabel-manage/index'),
      name: 'hotlabel-manage',
      meta: {
        title: '用户活跃标签管理'
      }
    },
    {
      path: 'label-manage',
      component: () => import('@/views/userManage/label/label-manage/index'),
      name: 'label-manage',
      meta: {
        title: '用户热度标签设置'
      }
    },
    // {
    //   path: 'sendlabel-manage',
    //   component: () => import('@/views/userManage/label/sendlabel-manage/index'),
    //   name: 'sendlabel-manage',
    //   meta: {
    //     title: '信息发布标签设置'
    //   }
    // },
    // },
    {
      path: 'sendlabel-manage',
      component: () => import('@/views/userManage/label/sendlabel-manage/index'),
      name: 'sendlabel-manage',
      meta: {
        title: '信息发布标签设置'
      }
    }
    ]
  },
  // {
  //     path: 'level-manage',
  //     name: 'Level-manage',
  //     component: () => import('@/views/userManage/level-manage/index'),
  //     meta: { title: '用户等级管理' }
  // },
  {
    path: 'level-manage',
    component: () => import('@/views/userManage/level/index'), // Parent router-view
    name: 'Level-manage',
    meta: {
      title: '用户等级'
    },
    //   redirect: '/label',
    children: [{
      path: 'level-manage',
      component: () => import('@/views/userManage/level/level-manage/index'),
      name: 'Level-manage',
      meta: {
        title: '用户等级管理'
      }
    },
    {
      path: 'level-authority',
      component: () => import('@/views/userManage/level/level-authority/index'),
      name: 'Level-authority',
      meta: {
        title: '用户等级权限管理'
      }
    }
    ]
  },
  // {
  //     path: 'coin-query',
  //     name: 'Coin-query',
  //     component: () => import('@/views/userManage/coin-query/index'),
  //     meta: { title: '金币与聚合金币值查询' }
  // },
  {
    path: 'coin',
    name: 'Coin',
    component: () => import('@/views/userManage/coin/index'),
    meta: { title: '金币与聚合金币' },
    children: [
      {
        path: 'coin-query',
        component: () => import('@/views/userManage/coin/coin-query/index'),
        name: 'coin-query',
        meta: {
          title: '金币与聚合金币查询'
        }
      },
      {
        path: 'task-award',
        component: () => import('@/views/userManage/coin/task-award/index'),
        name: 'task-award',
        meta: {
          title: '任务奖励设置'
        }
      },
      {
        path: 'coin-rules',
        component: () => import('@/views/userManage/coin/coin-rules/index'),
        name: 'coin-rules',
        meta: {
          title: '更多规则设置'
        }
      }
    ]
  },
  // 金币
  {
    path: 'polymerge-detail',
    name: 'polymerge-detail',
    component: () => import('@/views/userManage/coin/polymerge-detail/index')
  },
  {
    path: 'goldcoin-detail',
    name: 'goldcoin-detail',
    component: () => import('@/views/userManage/coin/goldcoin-detail/index')
  },
  {
    path: 'classify',
    name: 'classify',
    component: () => import('@/views/userManage/classify/index')
  },
  {
    path: 'user-detail',
    name: 'User-detail',
    component: () => import('@/views/userManage/user-detail/index')
  },
  {
    path: 'addUser',
    name: 'addUser',
    component: () => import('@/components/userManage/addData.vue')
  },
  {
    path: 'editClassify',
    name: 'editClassify',
    component: () => import('@/views/userManage/editClassify/index')
  },
  {
    path: 'lookClassify',
    name: 'lookClassify',
    component: () => import('@/views/userManage/lookClassify/index')
  },
  {
    path: 'addClassify',
    name: 'addClassify',
    component: () => import('@/views/userManage/addClassify/index')
  }
  ]
}

export default labelRouter
